STEP 2: We need to turn the word into a list of letters so that we can show and change the letters later in the game.

  • In LOGIC, click and drop Convert String to List at the bottom of your code.
  • Change the variable name to word_list. Change the argument in list() from my_var to choice.

We need to turn choice into a list so that later we can replace some of the letters in the word. This can't be done with a string, so we turn the string into a list!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)